package com.zan.ojstudy.zanojcodesandbox.security;

import java.security.Permission;

/**
 * @Author Zan
 * @Create 2024/5/31 9:14
 * @ClassName: DenySecurityManager
 * @Description : 禁止所有权限安全管理器
 */
public class DenySecurityManager extends SecurityManager {

    @Override
    public void checkPermission(Permission perm) {
        throw new SecurityException("权限异常: " + perm.toString());
    }
}
